package com.ruoyi.merchant.domain.dto;
import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 提现申请DTO
 */
@Data
//提现申请
public class WithdrawDTO {
    
    //提现金额
    @NotNull(message = "提现金额不能为空")
    @DecimalMin(value = "0.01", message = "提现金额必须大于0")
    private BigDecimal amount;

    @NotNull(message = "请选择提现银行卡")
    private Long withdrawalCardId;
    
    //备注
    private String remark;
}
